# coding: utf-8

puts "迭代器方法，这些方法的最后一个参数接受是block（语句块）。\n"
arr = [1, 2, 3]

arr.each do |x|
	puts x
end

map = {:one => 1, :two => 2}
map.each do |key, value|
	puts "#{key},#{value}"
end